/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyecto;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 *
 * @author marcomochito
 */
public class Ventana2 extends JFrame implements ActionListener{
    private JPanel pnlPreguntas, pnlRespuestas, pnlBotones;
    private JLabel lblPregunta, lblTipoPregunta,lblNumPreg, lblLitResp, lblPistas, lblCorrectas;
    private JTextField txtPregunta, txtCorrectas;
    private JComboBox cboTipo;
    private JSpinner spnNumPreg, spnAgrOpc;
    private JCheckBox chk;
    private JButton btnAgrOpc, btnGuardarTodo;
    private JScrollPane spRespuestas;
    
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    JButton boton = new JButton("Soy un boton");
    boton.setVisible(true);
    boton.setSize(100,45);
    this.add(boton);
    this.validate();
}

    @Override
    public void actionPerformed(ActionEvent e) {
        if(e.getSource() == btnAgrOpc){
            
        }
    }
}
